package com.baoyouqun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baoyouqun.domain.Enum.ResourceTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "user_resource", autoResultMap = true)
public class UserResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "")
    private String id;

    @ApiModelProperty(value = "关联用户ID")
    private String userId;

    private String resourceTypeId;

    @ApiModelProperty(value = "关联资源类型(需求,拥有资源))")
    private ResourceTypeEnum resourceTypeEnum;

    @ApiModelProperty(value = "关联资源名称")
    private String name;
}